protected void TheName(string fullName) { model = new NewAccountModel { FirstName = fullName.Split(' ')[0], LastName = fullName.Split(' ')[1] }; session = Substitute.For<IDocumentService>(); cookieGenerator = Substitute.For<IAuthCookieGenerator>(); controller = new RegistrationController(session, cookieGenerator); }
public RegistrationController(IDocumentService documentService, IAuthCookieGenerator authCookieGenerator) { _documentService = documentService; _authCookieGenerator = authCookieGenerator; }