예제 #1
0
        public async Task RemoveAvatarAsync_should_invoke_cache_remove()
        {
            await _service.DeleteAvatarAsync(Email);

            Received.InOrder(async() =>
            {
                await _cache.Received(1).DeleteImageAsync($"{Email}.png");
            });
        }
        public async Task RemoveAvatarAsync_should_invoke_cache_remove()
        {
            await _service.DeleteAvatarAsync(Email);

            Received.InOrder(() =>
            {
                ThreadHelper.JoinableTaskFactory.RunAsync(async() =>
                {
                    await _cache.Received(1).DeleteImageAsync($"{Email}.png");
                });
            });
        }