public void Create_CallsRepositoryAdd() { // Assert that we hit the repository. LobbyRepository.DidNotReceive().Add(Arg.Any <Lobby>()); MyWork.DidNotReceive().Complete(); var viewModel = new CreateLobbyViewModel() { Description = "Description", Name = "Name" }; uut.Create(viewModel); // Assert that we hit the repository. LobbyRepository.Received(1).Add(Arg.Any <Lobby>()); MyWork.Received(1).Complete(); }