Exemplo n.º 1
0
        public void Create_Correct_Venue()
        {
            //Arrange
            var venueDTO = new VenueDTO()
            {
                Name = "name", Description = "test", Address = "asd", Phone = "123"
            };

            //Act
            service.Create(venueDTO);
            var res = service.GetByName("name");

            //Assert
            Assert.AreEqual(venueDTO.Name, res.Name);

            service.Delete(res.Id);
        }
Exemplo n.º 2
0
        public void Create_Correct_Venue()
        {
            //Arrange
            var venueDTO = new VenueDTO {
                Name = "one", Description = "o", Address = "ads", Phone = "123"
            };

            //Act
            service.Create(venueDTO);
            var res = service.GetByName("one");

            //Assert
            Assert.AreEqual(res.Name, "one");
        }