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)); }
public void SutIsMessage(SoldOutEvent sut) { Assert.IsAssignableFrom<IMessage>(sut); }
public void IdIsUnique(SoldOutEvent sut, SoldOutEvent other) { Assert.NotEqual(sut.Id, other.Id); }
public void IdIsStable(SoldOutEvent sut) { Assert.Equal(sut.Id, sut.Id); }
public void EnvelopReturnsCorrectBody(SoldOutEvent sut) { var actual = sut.Envelop(); Assert.Equal(sut, actual.Body); }