public void ConsumeCorrectlyUpdatesViewStore(
     [Frozen]Mock<IObserver<DateTime>> observerMock,
     MonthViewUpdater sut,
     SoldOutEvent @event)
 {
     sut.Consume(@event);
     observerMock.Verify(s => s.OnNext(@event.Date));
 }
 public void DateIsCorrect([Frozen]DateTime date, SoldOutEvent sut)
 {
     Assert.Equal<DateTime>(date, sut.Date);
 }
 public void ConsumeCorrectlyUpdatesViewStore([Frozen]Mock<IMonthViewWriter> storeMock, MonthViewModelUpdater sut, SoldOutEvent @event)
 {
     sut.Consume(@event);
     storeMock.Verify(s => s.Disable(@event.Date));
 }
示例#4
0
 public void SutIsMessage(SoldOutEvent sut)
 {
     Assert.IsAssignableFrom<IMessage>(sut);
 }
示例#5
0
 public void IdIsUnique(SoldOutEvent sut, SoldOutEvent other)
 {
     Assert.NotEqual(sut.Id, other.Id);
 }
示例#6
0
 public void IdIsStable(SoldOutEvent sut)
 {
     Assert.Equal(sut.Id, sut.Id);
 }
示例#7
0
 public void EnvelopReturnsCorrectBody(SoldOutEvent sut)
 {
     var actual = sut.Envelop();
     Assert.Equal(sut, actual.Body);
 }