public void ServiceIsCalled() { var company = "Ryanair"; var description = "Software Developer"; var jobPeriodStart = new DateTime(2020, 1, 1); var jobPeriodEnd = new DateTime(2020, 5, 1); var techStack = new[] { ".Net Core", "NSubstitute" }; var createJobExperienceCommand = new CreateJobExperienceCommand(company, description, jobPeriodStart, jobPeriodEnd, techStack); WhenHandingRequest(createJobExperienceCommand); service.Received(1).CreateJobExperience(company, description, jobPeriodStart, jobPeriodEnd, techStack); }
public void ServiceIsCalled() { Handler.Handle(new GetJobExperiencesQuery(), new CancellationToken()); service.Received(1).GetJobExperiences(); }