public void EmptyForm_GetProductionType() { //Arrange var target = new PgStageDetailsForm(); //Act var result = target.GetProductionType(); //Assert result.Should().BeEmpty(); }
public void CostType_Trafficking_GetProductionType() { //Arrange var target = new PgStageDetailsForm { CostType = CostType.Trafficking.ToString() }; //Act var result = target.GetProductionType(); //Assert result.Should().NotBeNull(); result.Should().BeEmpty(); }
public void CostType_Buyout_GetProductionType() { //Arrange const string expectedProductionType = "Abc"; var target = new PgStageDetailsForm { CostType = CostType.Buyout.ToString(), UsageBuyoutType = new core.Builders.DictionaryValue { Key = expectedProductionType } }; //Act var result = target.GetProductionType(); //Assert result.Should().NotBeNull(); result.Should().Be(expectedProductionType); }
public void ContentType_Digital_GetProductionType() { //Arrange const string expected = "N/A"; var target = new PgStageDetailsForm { CostType = CostType.Trafficking.ToString(), ContentType = new core.Builders.DictionaryValue { Key = Constants.ContentType.Digital } }; //Act var result = target.GetProductionType(); //Assert result.Should().NotBeNull(); result.Should().Be(expected); }