public void Should_Update_SituationRoom() { var newDescriptionExpected = _faker.Random.String(1); var room = RoomBuilder.New().Build(); room.ChangeSituation(newDescriptionExpected); Assert.Equal(newDescriptionExpected, room.Situation); }
public void ShouldBeCreateSession() { var room = RoomBuilder.New().WithId(Guid.NewGuid()).Build(); var movie = MovieBuilder.New().WithId(Guid.NewGuid()).Build(); var sessionShould = new { SessionStart = _faker.Date.Recent(1), SessionEnd = _faker.Date.Recent(1), TicketValue = _faker.Finance.Amount(1, 200), Animation = _faker.PickRandom <AnimationType>(), Audio = _faker.PickRandom <AudioType>(), RoomId = room.Id, MovieId = movie.Id }; var session = new Session(sessionShould.SessionStart, sessionShould.SessionEnd, sessionShould.TicketValue, sessionShould.Animation, sessionShould.Audio, sessionShould.MovieId, sessionShould.RoomId); sessionShould.ToExpectedObject().ShouldMatch(session); }