Exemplo n.º 1
0
 public void CanCreate()
 {
     Assert.DoesNotThrow(() =>
     {
         IDataOperations testOperations = CreateOperationsInterface();
         testOperations.Create("LastName", "FirstName", gender: 'f', age: 34, grade: 12);
     },
                         "The create operation must be successful");
 }
 public void CanCreateWithMappedParameters()
 {
     Assert.DoesNotThrow(() =>
     {
         IDataOperations testOperations = CreateOperationsInterface();
         testOperations.Create(new Student
         {
             FirstName = "CompoundTypeTest",
             LastName  = "LastName",
             Age       = 28,
             Gender    = "M",
             Grade     = 12
         });
     },
                         "The create operation with mapped parameters must be successful");
 }