コード例 #1
0
        public void CheckingСonflictBetweenParametersOfDifferentTypes()
        {
            // arrange
            AdvancedWageParameter bottleParam       = new BottlesCountAdvancedWageParameter();
            AdvancedWageParameter deliveryTimeParam = new DeliveryTimeAdvancedWageParameter();

            // act
            bool result = bottleParam.HasConflicWith(deliveryTimeParam);

            // assert
            Assert.IsTrue(result);
        }
コード例 #2
0
 public bool ConflictBetweenParam(BottlesCountAdvancedWageParameter param1, BottlesCountAdvancedWageParameter param2)
 {
     return(param1.HasConflicWith(param2));
 }