Beispiel #1
0
 public void LogSessionEvent(string sessionName, string action, string user, PlateRepository plateRepo)
 {
     var plateList = plateRepo.GetPlatesBySession(sessionName);
     foreach (var plate in plateList)
     {
         _webService.LogSqatEvent(plate.Identifier, action, user, DateTime.Now);
     }
 }
        public void GetPlates_WithKnownSessionName_NumberPlatesOk()
        {
            //Arrange
            var platRepo = new PlateRepository("qc_devel");

            //Act
            var plates = platRepo.GetPlatesBySession("Session name");

            //Assert
            Assert.AreEqual(1, plates.Count);
        }