45 lines
1.7 KiB
C#
45 lines
1.7 KiB
C#
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using System;
|
|
|
|
namespace Prevu
|
|
{
|
|
[TestClass]
|
|
public class ProjectScenarions : BaseTest
|
|
{
|
|
#region Initialization & CleanUp
|
|
|
|
[ClassInitialize]
|
|
public static void ClassInitialize(TestContext TestContext)
|
|
{
|
|
BaseTest.ClassInitialize(TestContext);
|
|
}
|
|
[ClassCleanup]
|
|
public static void ClassCleanup()
|
|
{
|
|
BaseTest.ClassCleanup();
|
|
}
|
|
|
|
#endregion Initialization & CleanUp
|
|
|
|
[TestMethod, TestCategory("Smoke Test"), TestCategory("Project Scenarios"), Timeout(testTimeout)]
|
|
[TestProperty("Assign People Resource to Scenario: Resource End Date Less then Scenario Start Date: Cannot Assign", "")]
|
|
public void AssignPeopleResourceToScenario_ResourceEndDateLessThenScenarioStartDate_CannotAssign()
|
|
{
|
|
Assert.IsTrue(loginPage.SignInAdmin());
|
|
string team = "MK";
|
|
string expenditureCategory = "IE - Data Center (zz-N/A)";
|
|
string resourceId = "797a6c78-5bba-4674-a7b4-090ed3c2298c";
|
|
DateTime startDate = new DateTime(2016, 4, 1);
|
|
//DateTime endDate = new DateTime(2016, 5, 3);
|
|
DateTime endDate = new DateTime(2016, 5, 7);
|
|
bool employeeStatusIsActive = true;
|
|
bool changePlannedCapacity = true;
|
|
bool permanent = false;
|
|
Assert.IsTrue(peopleResourcePage.EditPeopleResource(resourceId, "", "", "", "", "", "", "", employeeStatusIsActive, changePlannedCapacity, permanent, startDate, endDate));
|
|
|
|
Assert.IsTrue(projectScenariosPage.OpenProjectScenarios("6f1f654f-5a4c-4b3b-b0ba-4982ba870f81", "Scenario Details"));
|
|
}
|
|
|
|
}
|
|
}
|