public void MyTestInitialize() { _resourceRepository = _kernel.Get<IResourceRepository>(); _projectRepository = _kernel.Get<IProjectRepository>(); _statusReportRepository = _kernel.Get<IStatusReportRepository>(); var resource = _resourceRepository.GetResourceByEmail("*****@*****.**"); if (resource == null) { _resourceRepository.AddResource(new Resource() { EmailAddress = "*****@*****.**", FirstName = "Test", LastName = "User" }); resource = _resourceRepository.GetResourceByEmail("*****@*****.**"); } _auditInfo = new AuditInfo(resource); }