Exemplo n.º 1
0
 public void AssignedEffortThrowsError() 
 { 
     var client = new TargetProcessClient 
     { 
         ApiSiteInfo = new ApiSiteInfo(TargetProcessRoutes.Route.AssignedEfforts) 
     }; 
     var assignedEffort = new AssignedEffort 
     { 
     }; 
 } 
Exemplo n.º 2
0
        public void CreateAssignedEffortThrowsError()
        {
            var client = CommonMethods.GetClientByRoute(TargetProcessRoutes.Route.AssignedEfforts);

            var assignedEffort = new AssignedEffort();
            var data           = client.CreateData <AssignedEffort>(assignedEffort);

            Assert.NotNull(data);
            Assert.True(data.HttpResponse.IsError);
            Assert.Equal(data.HttpResponse.Exception.GetType(), typeof(SniperExceptions.RequiredPropertyException));

            var exception = (SniperExceptions.RequiredPropertyException)data.HttpResponse.Exception;

            Assert.Equal(exception.RequiredDataResponse.Message, CrudMessages.CreateProhibited);
        }
Exemplo n.º 3
0
        public void AssignedEffortThrowsError()
        {
            var client = CommonMethods.GetClientByRoute(TargetProcessRoutes.Route.AssignedEfforts);

            var assignedEffort = new AssignedEffort();
        }