public void RemoveRoomTest() { //Arrange List <ModelLayer.RoomModel> rooms = (List <ModelLayer.RoomModel>)roomDb.GetAll(); //Act int total = rooms.Count; int id = rooms[total - 1].Id; var room = new RoomModel(); roomDb.Remove(room.Id); //Assert Assert.AreNotEqual(room.Id, id); }
public void CreateRoomTest() { //Arrange RoomModel room = new RoomModel(); room.RoomNumber = 1; room.Price = 1200; room.IsAvailable = true; room.Floor = 3; room.Capacity = 1; room.Area = 20; room.Description = "furnished"; //Act roomDb.Add(room); //Assert Assert.IsNotNull(room); }