Exemplo n.º 1
0
        public void Test2()
        {
            // Set up Prerequisites
            var controller = new AirlineOverrideApp.Controllers.AirlineOverrideTargetController();

            AirlineOverrideTarget airlineoverridetarget = new AirlineOverrideTarget();

            airlineoverridetarget.AirlineOverrideId = new Guid("D0E0CC17-6C98-46CC-AF83-04CCDA5C5DC4");
            airlineoverridetarget.Percent           = 123456M;
            airlineoverridetarget.Max        = 1M;
            airlineoverridetarget.Roi        = 2M;
            airlineoverridetarget.MaxRoi     = 3M;
            airlineoverridetarget.HardMaxRoi = 5M;

            int res = controller.Create(airlineoverridetarget);

            Assert.AreEqual(-1, res);
        }
Exemplo n.º 2
0
        public void Test4()
        {
            // Set up Prerequisites
            var controller = new AirlineOverrideApp.Controllers.AirlineOverrideTargetController();

            AirlineOverrideTarget airlineoverridetarget = new AirlineOverrideTarget();

            airlineoverridetarget.AirlineOverrideTargetId = new Guid("32EA7BDA-D53F-4250-AB66-F7294D3E81E6");
            airlineoverridetarget.AirlineOverrideId       = new Guid("D0E0CC17-6C98-46CC-AF83-04CCDA5C5DC4");
            airlineoverridetarget.Percent    = 1234M;
            airlineoverridetarget.Max        = 1M;
            airlineoverridetarget.Roi        = 2M;
            airlineoverridetarget.MaxRoi     = 3M;
            airlineoverridetarget.HardMaxRoi = 5M;

            int res = controller.Edit(airlineoverridetarget);

            Assert.AreEqual(1, res);
        }
Exemplo n.º 3
0
 public int Edit(AirlineOverrideTarget AirlineOverride)
 {
     return(objAirlineOverrideTarget.UpdateAirlineOverrideTarget(AirlineOverride));
 }
Exemplo n.º 4
0
 public int Create(AirlineOverrideTarget AirlineOverride)
 {
     return(objAirlineOverrideTarget.AddAirlineOverrideTarget(AirlineOverride));
 }
Exemplo n.º 5
0
 public int Create(AirlineOverrideTarget airlineoverridetarget)
 {
     return(objairlineoverridetarget.AddAirlineOverrideTarget(airlineoverridetarget));
 }