public void GetStoresReturnsItem() { // Given StoreService sut = new StoreServiceFixture(); // When sut.GetStores().Subscribe(); // Then sut.Stores.Items.Should().ContainSingle(); }
public void GetStoresCallsClient() { // Given var client = Substitute.For <IStoreApiClient>(); StoreService sut = new StoreServiceFixture().WithClient(client); // When sut.GetStores().Subscribe(); // Then client.Received().GetStores(Arg.Any <bool>()); }