예제 #1
0
        public void GetStoresReturnsItem()
        {
            // Given
            StoreService sut = new StoreServiceFixture();

            // When
            sut.GetStores().Subscribe();

            // Then
            sut.Stores.Items.Should().ContainSingle();
        }
예제 #2
0
        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>());
        }